package com.ran.patterns.factoryMethod.generalFactory.main;

import com.ran.patterns.factoryMethod.forCore.Sender;
import com.ran.patterns.factoryMethod.generalFactory.core.GerneralFactory;

public class Test {
	public static void main(String[] args) {
		Sender sender;
		sender = GerneralFactory.getSender("mail");
		sender.send();
		System.out.println("-----------------华丽的分隔线---------------------");
		sender = GerneralFactory.getSender("sms");
		sender.send();
		System.out.println("-----------------华丽的分隔线---------------------");
		sender = GerneralFactory.getSender("enythingElse");
		System.out.println(sender);
	}
}
